#include <header.h>

void *run(void *arg){

	while(1){
		sleep(1);
		printf("I am son thread\n");
	}
	return NULL;
}


int main(int argc, char* argv[]){
	
	pthread_t son_thread_id;
	pthread_create(&son_thread_id, NULL, run, NULL);

	sleep(20);
	pthread_cancel(son_thread_id);
	
	pthread_join(son_thread_id, NULL);
	
	return 0;
}